package com.CmJava.sqlSessionFactoryBuilder.sqlSessionFactory;

import com.CmJava.session.SqlSession;
import com.CmJava.session.excutor.SimpleExecutor;
import com.CmJava.sqlSessionFactoryBuilder.sqlSessionFactory.configuration.Configuration;

import java.lang.annotation.Target;

public class SqlSessionFactory {
    private Configuration configuration;

    public SqlSessionFactory(Configuration config) {
        this.configuration=config;
    }

    public SqlSession openSession(){
        return new SqlSession(new SimpleExecutor(),configuration);
    };
}
